package com.xjd.transport;

import java.io.IOException;
import java.io.InputStream;

public interface ReceiveHandler {
	public static ReceiveHandler NO_OP = new ReceiveHandler() {
		public void dataReceived(InputStream in) {
			try {
				in.close();
			} catch (IOException e) {
				//DoNothing
			}
		}
	};

	void dataReceived(InputStream in);
	
}
